package com.atguigu.gmall.item.client;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.item.client.impl.ItemDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * ClassName: ItemFeignClient
 * Package: com.atguigu.gmall.item.client
 * Description:
 *
 * @Author 刘轩
 * @Create 2023-08-22 18:20
 * @Version 1.0
 */


@FeignClient(value = "service-item", fallback = ItemDegradeFeignClient.class)
public interface ItemFeignClient {

 @GetMapping("/api/item/{skuId}")
 public Result<Map> getItemAllData(@PathVariable("skuId") Long skuId);
}